#ifndef QTAV_VIDEOOUTPUTEVENTFILTER_H
#define QTAV_VIDEOOUTPUTEVENTFILTER_H

#include <QtCore/QObject>
#include <QtCore/QPoint>
#include <QtAV/QtAV_Global.h>

namespace QtAV {

class VideoRenderer;
class Q_AV_EXPORT VideoOutputEventFilter : public QObject
{
    Q_OBJECT
public:
    VideoOutputEventFilter(VideoRenderer *renderer = 0);
    virtual bool eventFilter(QObject *watched, QEvent *event);

private slots:
    void stopFiltering();
private:
    void switchFullScreen();
    bool mRendererIsQObj;
    VideoRenderer *mpRenderer;
    QPoint gMousePos, iMousePos;
};

} //namespace QtAV

#endif // QTAV_VIDEOOUTPUTEVENTFILTER_H
